<span jwcid="$remove$"><!-- 
************************************************************************************************
 Render Viewer
************************************************************************************************
 --></span>
<span jwcid="@If" condition="ognl:list">
<span jwcid="$remove$"><!-- 
================================================================================================
 Render List
================================================================================================
 --></span>
	<span jwcid="@For" source="ognl:listValue" 
		index="ognl:listEntryIndex"
		converter="ognl:listConverter">
		<span jwcid="@XmlElement" element="ognl:listEntryTagWrapper">
			<span jwcid="@If" condition="ognl:!readOnly" element="ognl:removeTagWrapper">
				<a jwcid="@LinkSubmit" listener="listener:removeListEntry">Remove</a>
			</span>
			<span jwcid="@If" condition="ognl:simpleTypeListEntry">
<span jwcid="$remove$"><!-- 
------------------------------------------------------------------------------------------------
 SimpleType List Entries Are Rendered In the Same BeanEditor Instance
------------------------------------------------------------------------------------------------
 --></span>
	 			<span jwcid="@BeanEditorSimpleTypeSupport" typeMapping="ognl:instance"></span>
				<br jwcid="@XmlElement" element="ognl:brTag"/>
			</span>
			<span jwcid="@Else">
<span jwcid="$remove$"><!-- 
------------------------------------------------------------------------------------------------
 ComplexType List Entries Are Rendered In New (Nested) BeanEditor Instance
------------------------------------------------------------------------------------------------
 --></span>
	 			<span jwcid="@If" condition="ognl:beanEditor instanceof org.keyintegrity.webbeans.XsltBeanEditor">
	 				<span jwcid="@RenderBlock" block="ognl:beanEditor.nestedBeanEditor"
	 					bean="ognl:complexTypeListEntryValue" 
	 					parent="ognl:instance"
						readOnly="ognl:readOnly"
						stylesheet="ognl:beanEditor.stylesheet"
						debugXml="ognl:beanEditor.debugXml"></span>
	 			</span>
	 			<span jwcid="@Else">
					<span jwcid="@RenderBlock" block="ognl:beanEditor.nestedBeanEditor"
						bean="ognl:complexTypeListEntryValue" 
						parent="ognl:instance"
						readOnly="ognl:readOnly"></span>
					<span jwcid="$remove$"><!-- Need "br" tag between BeanEditors? --></span>
				</span>
			</span>
		</span>
	</span>
	<span jwcid="@If" condition="ognl:!readOnly" element="ognl:addTagWrapper">
<span jwcid="$remove$"><!--
------------------------------------------------------------------------------------------------
 NewEntryType field must preceding AddNew button so that Tapestry can update its value
------------------------------------------------------------------------------------------------
--></span>
		New&nbsp;Entry&nbsp;Type:&nbsp;<input jwcid="@TextField" value="ognl:newEntryType"/>
		<br/>
		<a jwcid="@LinkSubmit" listener="listener:addListEntry">Add New</a>
		<br/>
	</span>
</span>
<span jwcid="@Else">
<span jwcid="$remove$"><!-- 
================================================================================================
 Render SimpleType OR ComplexType Field
================================================================================================
 --></span>
	<span jwcid="@If" condition="ognl:simpleType">
<span jwcid="$remove$"><!--
------------------------------------------------------------------------------------------------
 Render SimpleType Field
------------------------------------------------------------------------------------------------
 --></span>
		<span jwcid="@BeanEditorSimpleTypeSupport" typeMapping="ognl:instance"></span>
	</span>
	<span jwcid="@Else">
<span jwcid="$remove$"><!-- 
------------------------------------------------------------------------------------------------
 Render ComplexType Field
------------------------------------------------------------------------------------------------
 --></span>
 			<span jwcid="@If" condition="ognl:beanEditor instanceof org.keyintegrity.webbeans.XsltBeanEditor">
 				<span jwcid="@RenderBlock" block="ognl:beanEditor.nestedBeanEditor"
 					bean="ognl:beanFieldValue" 
 					parent="ognl:instance"
 					readOnly="ognl:readOnly"
					stylesheet="ognl:beanEditor.stylesheet"
					nested="true"
					debugXml="ognl:beanEditor.debugXml"></span>
 			</span>
 			<span jwcid="@Else">
				<span jwcid="@RenderBlock" block="ognl:beanEditor.nestedBeanEditor"
					bean="ognl:beanFieldValue" 
					parent="ognl:instance"
					readOnly="ognl:readOnly"></span>
				<span jwcid="$remove$"></span>
			</span>
			<span jwcid="$remove$"></span>
	</span>
</span>